package com.greatmay.service.impl;

import java.util.List;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.greatmay.dao.GenericDao;
import com.greatmay.model.Book;
import com.greatmay.service.BookService;


/**
 * Implementation of UserManager interface.
 *
 * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a>
 */
@WebService
public class BookServiceImpl extends GenericManagerImpl<Book, Long> implements BookService {
    @Autowired
    public BookServiceImpl(GenericDao<Book, Long> dao) {
        this.dao = dao;
    }

    @Override
    public List<Book> loadAll() {
        List<Book> result = this.dao.getAll();
        log.debug(result);
        return result;
    }

}
